<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div id="content">
	<input type="file" id="file" name="file" style="display: none;"/>
	<input type="file" id="picfile" name="picfile" style="display: none;"/>
		<section class="content-header">
			<h1>
				<i class="fa fa-dashboard"></i> <strong>商户管理</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>商户管理</li>
				<li class="active">商户审核</li>
			</ol>
		</section>
		 <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="widget-content nopadding">
                    <input type="hidden" name="codeAdress" id="codeAdress" th:value="${codeAdress}"/>
                     <input type="hidden" name="userName" id="userName" th:value="${user.name}"/>
                     <input type="hidden" name="userId" id="userId" th:value="${user.id}"/>
                     <input type="hidden" name="registerOpenid" id="registerOpenid" th:value="${registerOpenid}"/>
                        <form id="paidForm">
                        <table class="table table-bordered">
                            <tbody>
                            <tr>
                                <td width="62%" align="left" colspan="2"><h2>
                                账户信息
                                </h2>
                                </td>
                                <!-- <td width="16%" align="left">
                                </td> -->
                                <td width="30%" rowspan="5"><div id="qrcode"></div>
                                		<img id="userPic" src="../img/nopicture.png" width="100%" height="auto"/>
                                </td>
                                
                                <td width="30%" rowspan="5"><div id="qrcode"></div><img width="100%" id="dimg"></img>
                                <img id="qrCodeIco" src="../img/codepicture.png" hidden="true"/></td>
                            </tr>
                            <tr>
                                <td width="8%" align="center">用户账号:</td>
                                <td width="32%">
                                <label id="userAccount"></label>
                                </td>
                            </tr>
                             <tr>
                                <td width="8%" align="center">企业信息:</td>
                                <td width="32%">
                                <label id="buInfo">门前三包二维码管理</label>
                                <a href="javascript: ;" id="buInfoEdit" class="ui-btn ui-corner-all ui-shadow ui-icon-search ui-btn-icon-left ">修改</a>
                                </td>
                            </tr>
                             <tr>
                                <td width="8%" align="center">登录密码:</td>
                                <td width="32%">
                                <label id="pwdInfo">已设置   </label>
                                <a href="javascript: ;" id="pwdInfoEdit" class="ui-btn ui-corner-all ui-shadow ui-icon-search ui-btn-icon-left ">修改密码</a>
                                </td>
                            </tr>
                             <tr>
                                <td width="8%" align="center">头像上传:</td>
                                <td width="32%">
                                <label id="pwdInfo"></label>
                                <a href="javascript: ;" id="uploadPic" class="ui-btn ui-corner-all ui-shadow ui-icon-search ui-btn-icon-left "><img width="30px" height="30px;" src="../img/upload.png"/></a>
                                </td>
                            </tr>
                            <!-- <tr>
                                <td width="8%" align="center" rowspan="2">微信绑定:</td>
                                
                                <td width="32%">
                                <a href="javascript: ;" id="wxInfoEdit" class="ui-btn ui-corner-all ui-shadow ui-icon-search ui-btn-icon-left ">取消绑定</a>
                                </td>
                            </tr>
                            <tr>                                
                                <td width="32%">
                                <label id="wxInfo" style="color:Gray">你已经绑定微信，可以直接通过微信扫码登录</label>
                                </td>
                            </tr> -->
                           </tbody>
                        </table>
                        </form>
                    </div>
                </div>
             </div>
            </div>
    </section>
        <!--头像上传-->
        <div class="modal" id="picModal">
			<div class="modal-dialog" role="dialog" style="width:50%">
				<form id="pwdForm">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							<h4 class="modal-title"><strong>头像上传</strong></h4>
						</div>
						<div class="modal-body">
							<div width="100%" style="text-align: center;">
								<img id="picIMG" width="300px" height="300px;" src="../img/upload.png"/>
							</div>
                        </div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary savepicBtn" >保存</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
        <!--修改密码-->
        <div class="modal" id="pwdModal">
			<div class="modal-dialog" role="dialog" style="width:50%">
				<form id="pwdForm">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							<h4 class="modal-title"><strong>密码修改</strong></h4>
						</div>
						<div class="modal-body">
						<table class="table table-bordered">
						<tbody>
						<tr>
						<td width="8%" align="center">旧密码</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input type="password" class="form-control" datatype="*" nullmsg="请填写密码" name="opwd"
										id="opwd" />
						</div></td>
						</tr>
						<tr>
						<td width="8%" align="center">新密码</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input type="password" class="form-control" datatype="*" nullmsg="请填写密码" name="npwd"
										id="npwd" />
						</div>
                                </td>
                                
						</tr>
						</tbody>
						</table>
                        </div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary savepwdBtn" >保存</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<!--审核弹窗-->
		<div class="modal" id="checkModal">
			<div class="modal-dialog" role="dialog" style="width:50%">
				<form id="checkEditForm">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							<h4 class="modal-title"><strong>商铺信息</strong></h4>
						</div>
						<div class="modal-body">
							<input type="hidden" name="id" id="id" />
							<input type="hidden" name="createTime" id="createTime" />
							<input type="hidden" name="submitDate" id="submitDate" />
							<input type="hidden" name="checkDate" id="checkDate" />
							<input type="hidden" name="longitude" id="longitude" />
							<input type="hidden" name="latitude" id="latitude" />
							<input id="registerOpenid" name="registerOpenid" type="hidden"
						class="form-control" />
					<input id="validateOpenid" name="validateOpenid" type="hidden"
						class="form-control"/>
						<table class="table table-bordered">
						<tbody>
						<tr>
						<td width="8%" align="center">店铺名称</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" name="shopName"
										id="shopName" />
						</div>
                                </td>
                                <td width="24%" align="center" rowspan="4" colspan="3">
                                <label class="col-sm-12 control-label"><a href="javascript: ;" id="fileclick"><img id="avatar"  src="" width="200px" height="200px"/></a></label>
                                </td>
						</tr>
						<tr>
						<td width="8%" align="center">认证状态</td>
						<td width="16%">
                                    <div class="col-md-12">
							<!-- <input class="form-control" type="text" readonly="readonly" name="infoState"
										id="infoState" /> -->
										<img id="infoState" width="40%" src=""/>
						</div>
                                </td>
                                
						</tr>
						<tr>
						<td width="8%" align="center">经营地址</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" name="shopAdress"
										id="shopAdress" />
						</div>
                                </td>
                                
						</tr>
						<tr>
						<td width="8%" align="center">所属社区</td>
						<td width="16%">
							<div class="col-md-12">
								<select name="bussinessLevel" id="bussinessLevel" class="form-control" datatype="*,*1-100">
									<option th:each="bussinessLevel:${bussinessLevels}" th:value="${bussinessLevel.id}" th:text="${bussinessLevel.levelName}"></option>
								</select>
<!--                                     <input list="bussinessLevels" class="form-control" id="bussinessLevel"/>
									<datalist id="bussinessLevels">
                                    		<option th:each="bussinessLevel:${bussinessLevels}" th:value="${bussinessLevel.id}" th:text="${bussinessLevel.levelName}"></option>
                                    </datalist> -->
	<!-- 						 <select name="area" id="area" class="form-control" datatype="*,*1-100">
	     <option th:each="area:${areas}" th:value="${area.id}"
									th:text="${area.title}"></option>
        </select> -->
							</div>
						</td>
						</tr>
						<!-- <tr>
						<td width="8%" align="center">社区电话</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" readonly="readonly" name="areaInfoPhone"
										id="areaInfoPhone" />
						</div>
                                </td>
                                <td width="2%" align="center">历史</td>
						</tr> -->
	<!-- 						<tr>
							
							<td width="8%" align="center">社区管理员</td>
							<td width="16%">
	                                    <div class="col-md-12">
								<select name="areaMperson" id="areaMperson" class="form-control" datatype="*,*1-100">
		     <option th:each="areaMperson:${areaMpersons}" th:value="${areaMperson.id}"
										th:text="${areaMperson.name}"></option></select>
							</div>
	                                </td>
							</tr> -->
						
						<tr>
						<td width="8%" align="center">责任人</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" readonly="readonly" name="managementPerson"
										id="managementPerson" />
						</div>
                                </td>
						<td width="8%" align="center">负责面积</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" name="areaMeasure" datatype="*1-100"
										id="areaMeasure" />
						</div>
                                </td>
						</tr>
						<tr>
						<td width="8%" align="center">保洁人员</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" name="cleaningPerson"
										id="cleaningPerson" />
						</div>
                                </td>
                        <td width="8%" align="center">签订人</td>
						<td width="16%">
                                    <div class="col-md-12">
							<input class="form-control" type="text" name="signPerson"
										id="signPerson" />
						</div>
                                </td>
						</tr>
						<tr>
						<td width="8%" align="center">经营范围</td>
						<td width="16%" colspan="5">
                                    <div class="col-md-12">
							<textArea class="form-control" id="managementRange"  height="100px" rows="5"></textArea>
						</div>
                                </td>
						</tr>
						<tr>
							<td colspan="6">
								<div class="col-md-12">
									<div id="map" style="width: calc(100% - 2px); height: 300px;"></div>
								</div>
							</td>
						</tr>
						</tbody>
						</table>
                        </div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveBtn" >保存</button>
							<button type="button" class="btn btn-info submitBtn" >提交</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">返回</button>

						</div>
					</div>
				</form>
			</div>
		</div>
		<link rel="stylesheet" type="text/css" href="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css" />
		<link rel="stylesheet" type="text/css" href="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/esri/css/esri.css" />
		<script type="text/javascript" src="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/init.js"></script>
		
		<script th:src="@{/userSet/userSet.js}"></script>
		<script th:src="@{/plugins/sha256.js}"></script>
	</div>

</body>
</html>